package org.jecat.pusher;

import java.io.IOException;

import org.dom4j.DocumentException;

public class Pusher extends Object{

	public static void main(String[] argv)
	{		
		Configure aConfig ;
		System.out.println(Pusher.class.getResource("").getPath());
		try {
			aConfig = new Configure( Pusher.class.getResource("").getPath().toString()+"/config.xml" ) ;
		} catch (DocumentException e) {
			e.printStackTrace();
			return ;
		}
		
		Server aHttpServer;
		try {
			aHttpServer = new Server(aConfig);
		} catch (Exception e) {
			e.printStackTrace();
			return ;
		}
		
		try {
			aHttpServer.daemon() ;
		} catch (IOException e) {
			e.printStackTrace();
			return ;
		}
		
	}
	
}
